package com.dr.web.controllers;

import com.dr.exception.ServiceExcep;
import com.dr.pojo.SysUser;
import com.dr.service.SysLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by tugou on 2017/4/23.
 * 后台用户控制器
 */
@Controller
@RequestMapping("sysUser")
public class SysUserController {
    @Autowired
    SysLoginService sysLoginService;

    @RequestMapping("sysLogin")
    public String sysLogin(SysUser sysUser, Model model) {
        SysUser user = null;
        try {
            user = sysLoginService.getSysUserByLoginInfo(sysUser);
        } catch (ServiceExcep excep) {
            excep.printStackTrace();
        }
        return null;
    }
}
